package com.mxf.code.project.service;

import com.mxf.code.project.dao.MyDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author 28382
 */
@Service
public class MyService {
    @Qualifier("myDao")
    @Autowired
    private MyDao myDao;

    public void print() {
        System.out.println(myDao);
    }
}
